home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Top 200 Programs
/
Top 200 Programs.iso
/
Bob8
/
THOMPSON
/
LIBERTY
/
PRODUCT
/
LB14W.EXE
/
CALLDLL4.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-02-01
|
1KB
|
52 lines
'CALLDLL4.BAS - Make some API calls to play wave files and
'dynamically resize a window
open "kernel" for dll as #kernel
open "user" for dll as #user
open "mmsystem" for dll as #mmsystem
open "Me" for window as #aWindow
print str$(playMode)
wavefile$ = "chimes.wav"
playMode = 0
calldll #mmsystem, "sndPlaySound", wavefile$ as ptr, playMode as ushort, result as bool
hndl = hwnd(#aWindow)
for x = 50 to 350 step 5
calldll #user, "MoveWindow", _
hndl as word, _
50 as short, _
50 as short, _
x as short, _
x as short, _
1 as word, _
result as void
next x
input r$
progname$ = "notepad.exe"
code = _SW_SHOWNA
notice str$(code)
calldll #kernel, "WinExec", _
progname$ as struct, _
code as word, _
result as word
print result
input r$
close #kernel
input r$
'WinConstants